package com.aiti.lulian.controller;

import com.aiti.base.core.utils.message.Message;
import com.aiti.lulian.entity.LuLianCertificate;
import com.aiti.lulian.service.ILuLianCertificateService;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import javax.annotation.Resource;
import java.util.List;

/**
 * @ClassName LuLianCertificateController
 * @Description
 * @Author diaozhende
 * @Date 2024/6/13 0013 11:31
 */
@RestController
@RequestMapping("/certificate")
public class LuLianCertificateController {

    @Resource
    private ILuLianCertificateService certificateService;

    /**
     * 多参数查询
     *
     * @param certificate 多参数
     * @return com.aiti.base.core.utils.message.Message
     * @date 2024/6/13 0013 11:32
     * @author diaozhende
     */
    @GetMapping
    public Message queryByParams(LuLianCertificate certificate) {
        List<LuLianCertificate> certificateList = certificateService.queryByParams(certificate);
        return Message.success(certificateList);
    }
}
